import request from '../utils/request'

export function getProductAll() {
    return request({
        url: '/api/product/getAll',
        method: 'get',
        data: null
    })
}

export function getProductDetail(params:any) {
    return request({
        url: '/api/product/getDetail',
        method: 'get',
        params: params
    })
}

export function getKlineAll(params:any) {
    return request({
        url: '/api/product/getKlineAll',
        method: 'get',
        params: params
    })
}

export function placeOrder(params:any) {
    return request({
        url: '/api/product/placeOrder',
        method: 'post',
        data: params
    })
}

export function getProductPriceDetail(params:any) {
    return request({
        url: '/api/product/getPriceDetail',
        method: 'get',
        params: params
    })
}